﻿// MT200




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category2
{
  public class MT200 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagChoiceDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagChoiceDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;

    [Description("Transaction Reference Number")]
    public Tag20 TransactionReferenceNumber_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U0002);
      }
    }

    [Description("Transaction Reference Number")]
    public Tag20 Tag20_TransactionReferenceNumber
    {
      get
      {
        return this.TransactionReferenceNumber_20;
      }
    }

    [Description("Value Date, Currency Code And Amount")]
    public Tag32A ValueDateCurrencyCodeAmount_32A
    {
      get
      {
        return new Tag32A((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U0004);
      }
    }

    [Description("Value Date, Currency Code And Amount")]
    public Tag32A Tag32A_ValueDateCurrencyCodeAmount
    {
      get
      {
        return this.ValueDateCurrencyCodeAmount_32A;
      }
    }

    [Description("Sender’s Correspondent")]
    public MT200.Tag53B SendersCorrespondent_53B
    {
      get
      {
        return new MT200.Tag53B((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U0008);
      }
    }

    [Description("Sender’s Correspondent")]
    public MT200.Tag53B Tag53B_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53B;
      }
    }

    [Description("Intermediary")]
    public Tag56A Intermediary_56A
    {
      get
      {
        return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U0011);
      }
    }

    [Description("Intermediary")]
    public Tag56A Tag56A_Intermediary
    {
      get
      {
        return this.Intermediary_56A;
      }
    }

    [Description("Intermediary")]
    public Tag56D Intermediary_56D
    {
      get
      {
        return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U0014);
      }
    }

    [Description("Intermediary")]
    public Tag56D Tag56D_Intermediary
    {
      get
      {
        return this.Intermediary_56D;
      }
    }

    [Description("Account With Institution")]
    public Tag57A AccountWithInstitution_57A
    {
      get
      {
        return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U0018);
      }
    }

    [Description("Account With Institution")]
    public Tag57A Tag57A_AccountWithInstitution
    {
      get
      {
        return this.AccountWithInstitution_57A;
      }
    }

    [Description("Account With Institution")]
    public MT200.Tag57B AccountWithInstitution_57B
    {
      get
      {
        return new MT200.Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U001B);
      }
    }

    [Description("Account With Institution")]
    public MT200.Tag57B Tag57B_AccountWithInstitution
    {
      get
      {
        return this.AccountWithInstitution_57B;
      }
    }

    [Description("Account With Institution")]
    public Tag57D AccountWithInstitution_57D
    {
      get
      {
        return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U001E);
      }
    }

    [Description("Account With Institution")]
    public Tag57D Tag57D_AccountWithInstitution
    {
      get
      {
        return this.AccountWithInstitution_57D;
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 SenderToReceiverInformation_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT200.U0080);
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation
    {
      get
      {
        return this.SenderToReceiverInformation_72;
      }
    }

    public MT200()
      : base(true)
    {
    }

    public MT200(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT200.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT200.MessageDefinition = new SwiftMessageDefinition("MT200", "Financial Institution Transfer for its Own Account");
      MT200.U0002 = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT200.U0002.TagName = ":20:";
      MT200.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference Number");
      MT200.U0002.Elements.Add((SwiftDefinitionElement) MT200.U0003);
      MT200.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT200.U0002);
      MT200.U0004 = new SwiftTagDefinition("ValueDateCurrencyCodeAmount_32A", "Value Date, Currency Code And Amount");
      MT200.U0004.TagName = ":32A:";
      MT200.U0005 = new SwiftTagSubItemDefinition("Date", "Date");
      MT200.U0004.Elements.Add((SwiftDefinitionElement) MT200.U0005);
      MT200.U0006 = new SwiftTagSubItemDefinition("Currency", "Currency Code");
      MT200.U0004.Elements.Add((SwiftDefinitionElement) MT200.U0006);
      MT200.U0007 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT200.U0004.Elements.Add((SwiftDefinitionElement) MT200.U0007);
      MT200.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT200.U0004);
      MT200.U0008 = new SwiftTagDefinition("SendersCorrespondent_53B", "Sender’s Correspondent");
      MT200.U0008.TagName = ":53B:";
      MT200.U0008.Mandatory = false;
      MT200.U000E = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT200.U000E.Mandatory = false;
      MT200.U0008.Elements.Add((SwiftDefinitionElement) MT200.U000E);
      MT200.U000F = new SwiftTagSubItemDefinition("Location", "Location");
      MT200.U000F.Mandatory = false;
      MT200.U0008.Elements.Add((SwiftDefinitionElement) MT200.U000F);
      MT200.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT200.U0008);
      MT200.U0010 = new SwiftTagChoiceDefinition("Choice", "");
      MT200.U0010.Mandatory = false;
      MT200.U0010.Multiple = true;
      MT200.U0011 = new SwiftTagDefinition("Intermediary_56A", "Intermediary");
      MT200.U0011.TagName = ":56A:";
      MT200.U0012 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT200.U0012.Mandatory = false;
      MT200.U0011.Elements.Add((SwiftDefinitionElement) MT200.U0012);
      MT200.U0013 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT200.U0011.Elements.Add((SwiftDefinitionElement) MT200.U0013);
      MT200.U0010.Elements.Add((SwiftDefinitionElement) MT200.U0011);
      MT200.U0014 = new SwiftTagDefinition("Intermediary_56D", "Intermediary");
      MT200.U0014.TagName = ":56D:";
      MT200.U0015 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT200.U0015.Mandatory = false;
      MT200.U0014.Elements.Add((SwiftDefinitionElement) MT200.U0015);
      MT200.U0016 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT200.U0014.Elements.Add((SwiftDefinitionElement) MT200.U0016);
      MT200.U0010.Elements.Add((SwiftDefinitionElement) MT200.U0014);
      MT200.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT200.U0010);
      MT200.U0017 = new SwiftTagChoiceDefinition("Choice", "");
      MT200.U0017.Multiple = true;
      MT200.U0018 = new SwiftTagDefinition("AccountWithInstitution_57A", "Account With Institution");
      MT200.U0018.TagName = ":57A:";
      MT200.U0019 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT200.U0019.Mandatory = false;
      MT200.U0018.Elements.Add((SwiftDefinitionElement) MT200.U0019);
      MT200.U001A = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT200.U0018.Elements.Add((SwiftDefinitionElement) MT200.U001A);
      MT200.U0017.Elements.Add((SwiftDefinitionElement) MT200.U0018);
      MT200.U001B = new SwiftTagDefinition("AccountWithInstitution_57B", "Account With Institution");
      MT200.U001B.TagName = ":57B:";
      MT200.U001C = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT200.U001C.Mandatory = false;
      MT200.U001B.Elements.Add((SwiftDefinitionElement) MT200.U001C);
      MT200.U001D = new SwiftTagSubItemDefinition("Location", "");
      MT200.U001D.Mandatory = false;
      MT200.U001B.Elements.Add((SwiftDefinitionElement) MT200.U001D);
      MT200.U0017.Elements.Add((SwiftDefinitionElement) MT200.U001B);
      MT200.U001E = new SwiftTagDefinition("AccountWithInstitution_57D", "Account With Institution");
      MT200.U001E.TagName = ":57D:";
      MT200.U001F = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT200.U001F.Mandatory = false;
      MT200.U001E.Elements.Add((SwiftDefinitionElement) MT200.U001F);
      MT200.U007F = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT200.U001E.Elements.Add((SwiftDefinitionElement) MT200.U007F);
      MT200.U0017.Elements.Add((SwiftDefinitionElement) MT200.U001E);
      MT200.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT200.U0017);
      MT200.U0080 = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender To Receiver Information");
      MT200.U0080.TagName = ":72:";
      MT200.U0080.Mandatory = false;
      MT200.U0081 = new SwiftTagSubItemDefinition("Line1", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x]");
      MT200.U0080.Elements.Add((SwiftDefinitionElement) MT200.U0081);
      MT200.U0082 = new SwiftTagSubItemDefinition("Line2", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT200.U0082.Mandatory = false;
      MT200.U0080.Elements.Add((SwiftDefinitionElement) MT200.U0082);
      MT200.U0083 = new SwiftTagSubItemDefinition("Line3", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT200.U0083.Mandatory = false;
      MT200.U0080.Elements.Add((SwiftDefinitionElement) MT200.U0083);
      MT200.U0084 = new SwiftTagSubItemDefinition("Line4", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT200.U0084.Mandatory = false;
      MT200.U0080.Elements.Add((SwiftDefinitionElement) MT200.U0084);
      MT200.U0086 = new SwiftTagSubItemDefinition("Line5", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT200.U0086.Mandatory = false;
      MT200.U0080.Elements.Add((SwiftDefinitionElement) MT200.U0086);
      MT200.U0087 = new SwiftTagSubItemDefinition("Line6", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT200.U0087.Mandatory = false;
      MT200.U0080.Elements.Add((SwiftDefinitionElement) MT200.U0087);
      MT200.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT200.U0080);
    }

    public class Tag53B : SwiftTagWrapper
    {
      public string Value
      {
        get
        {
          return this.GetValue();
        }
        set
        {
          this.SetValue("53B", value);
        }
      }

      internal Tag53B(SwiftElement parent, int index, SwiftDefinitionElement definition)
        : base(parent, index, definition)
      {
      }
    }

    public class Tag57B : SwiftTagWrapper
    {
      public string Value
      {
        get
        {
          return this.GetValue();
        }
        set
        {
          this.SetValue("57B", value);
        }
      }

      internal Tag57B(SwiftElement parent, int index, SwiftDefinitionElement definition)
        : base(parent, index, definition)
      {
      }
    }
  }
}
